package Year2021.Month11.Day1Homework.Day2;

public class RemoteControl implements PowerOn,ChangeChannel,ShutDown{
    private double weight;
    private String wirelessRange;//无线范围
    private String color;

    public RemoteControl(double weight, String wirelessRange, String color) {
        this.weight = weight;
        this.wirelessRange = wirelessRange;
        this.color = color;
    }

    public RemoteControl() {
        super();
    }
    public void show(){
        System.out.println("这个遥控器重"+weight+"克"+"\t"+"颜色是"+color+"\t"+"无线的范围是在"+wirelessRange);
    }
    //开机
    @Override
    public void powerOn(TV tv) {
        System.out.println("可以控制电视开机");

    }
    //换台

    @Override
    public void changeChannel(TV tv) {
        System.out.println("可以控制电视换台");

    }
    //关机

    @Override
    public void shutDown(TV tv) {
        System.out.println("可以控制电视关机");

    }
}
